package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Peachblossom;

/**
 * @author mwj
 * @date 2022/1/7
 * @TIME:23:16
 */
public interface PeachblossomApi {
    //随机查询一个语音消息返回但需接受用户为空
    Peachblossom findRandom(Long userId);

    //更新
    void update(Peachblossom peachblossom);

    //保存
    void save(Peachblossom peachblossom);

    //发送音频文件
    Boolean sendSoundFile(Long userId, String soundUrl);

    //查询当天发送次数
    Integer selectSendCountInToday(Long userId);
}
